CopyToClipboard
Wolfram Kernel
Execution environment
CopyToClipboard[expr_, opts___]
pushes InputForm form of expr to the clipboard of a user.
Options
In a case of a lost context provide
"Window"
Specify explicitly a notebook where to pop up a window. By the default is CurrentWindow